package chapter06.Example05;

import java.util.ArrayList;

public class Example05 {
    public static void main(String[] args) {
        //使用foreach遍历列表
        ArrayList list = new ArrayList();
        list.add("A");
        list.add("B");
        list.add("C");
        for (Object obj : list) {
            System.out.println(obj);
        }
    }
}
